package com.cdht.data.http;

import com.cdht.util.DataUtil;

public class DataUtilTest2 {
    
   
    public static void main(String[] args) {
        String testRSAPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwi7kOtDuf5kHKi7y5QVV4MtQk4e3xDVIrX7zfA4BRauqoEBdgoP9YxUAwd659w46aJ6EpZ9A1oLXap1rOCJ6BAFXtwQppcwV3yf1p3sx7PGAwdSFFxgfOhAcVkYvLLNUhcczRakWXbNKKeysJlgq2MLO5kpKFdlUN4etRUoGlTwIDAQAB";
        String testRSAPrivateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALCLuQ60O5/mQcqLvLlBVXgy1CTh7fENUitfvN8DgFFq6qgQF2Cg/1jFQDB3rn3DjponoSln0DWgtdqnWs4InoEAVe3BCmlzBXfJ/WnezHs8YDB1IUXGB86EBxWRi8ss1SFxzNFqRZds0op7KwmWCrYws7mSkoV2VQ3h61FSgaVPAgMBAAECgYA7v83tsAnN3/u8NPa2K+plN66cnOoOftekXk5pm6G97FVmc6u1xEcnH/rNbHPdlGWavnbIsJ3CyJVDXwhYWoppxczfnLBmZw6Ie+7acAUTo9JAx7f7u6lcLRXjq5fI1GuioTHQgF39ECy9un6GdZcNkihYs5GZk1xSkbC7wlQWwQJBAOmgjYTFGh3y7/BiNFho0reGKrJv+cnVYYg9hwBbQ1D8L2D8uVOVA7zE/Oy0x17Nkbmnow4VtfmNeD9RHWdAE9cCQQDBc80sV73FkoNMEE8pOnsIi9qGV7EM5aaSl+r6UdvhtJOM/7g4IfLEq0k8sixgip8eYhC/XvkSzYSTd6cSdEtJAkEA1pV8Rr3PLkDsN4vL7oRhPuYBo6GL+eF+0udIb4BjxSfM0LVv96BALYt1kGi/UolYVwDtmEtCuLNDBk0Xx7UoQwJAWvsBVYd2YsMDKPTKphMw5dYQUfpP9EbVTkBQbKWvCbmJY1io5Q1iRYhhC0CoikbniryIL9iUv3kUjt5JHu6+sQJBAJoXESqAnO8xz8FCWYaY7OXKp8maeDO/JqYm4wtQ0y2Td+Q3NkRpPCcuyTHuMscZEtXtZUjaiYzNXbUqoHpFUgA=";
        String data = "1234中文";
        System.out.println(DataUtil.encrypt(data, testRSAPublicKey, testRSAPrivateKey));
      
    }

}
